package com.back_end.mysql.outdata.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(catalog = "outdata",schema = "outdata",
        indexes = {@Index(name = "journalIdIndex",columnList = "journalId"),
                @Index(name = "conferenceSeriesIdIndex", columnList = "conferenceSeriesId"),
                @Index(name = "conferenceInstanceIdIndex", columnList = "conferenceInstanceId")})
@NoArgsConstructor
public class Paper {
    @Id
    Long paperId;
    //评分
    Integer rank_;
    //标识符
    String doi;
    //类型：Conference（会议），Journal（期刊）
    String docType;
    String title;
    @Lob
    @Basic(fetch = FetchType.LAZY)
    String abstract_;
    Integer year;
    Date date;
    String publisher;
    
    //期刊
    Long journalId;
    String journalName;
    //会议录
    Long conferenceSeriesId;
    String conferenceSeriesName;
    //会议
    Long conferenceInstanceId;
    String conferenceInstanceName;
    
    String volume;
    String issue;
    String firstPage;
    String lastPage;
    
    Integer referenceCount;
    Integer citationCount;
    Boolean isAlive = true;
}
